/*
 * Copyright 2021-2022 the original author(https://github.com/wj596)
 * 
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */
package org.jsets.fastboot.operlog.model;
/**
 * 操作信息
 *
 * @author wangjie (https://github.com/wj596)
 * @date 2021.07.10 23:56
 * @since 0.1
 */
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class OperInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String subsystem;// 子系统
	private String module;// 模块
	private String func;// 功能
	private String content;//内容
	private String methodName;// 方法名称
	private Object[] parameters;// 入参
	private Object returnValue;// 返回

	private String requestMethod;// http请求方式
	private String requestIp; // IP

	private OperType operType;// 操作类型
	private String operUsername;// 操作人 用户名
	private Date operTime;// 操作时间

	private Boolean success; // 是否操作成功，为false说明可以能抛出异常
	private String errorMsg;// 错误消息

	private Map<String,Object> ctx;//线程上下文中的内容
}